package com.nefu.huiyi.entity;



import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("doctor")
@Data
@Entity
public class Doctor  {

    @Id
    @Schema(description = "doctor表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "医生名字")
    @TableField("name")
    private String name;

    @Schema(description = "医生科室")
    @TableField("department")
    private String department;

    @Schema(description = "职称")
    @TableField("title")
    private String title;

    @Schema(description = "电话号码")
    @TableField("phone")
    private String phone;

    @Schema(description = "入职时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
